// 导入baseService
import { fetch, apiFormat2 } from '@/service/baseService';
// 历史位置信息
const getHistoryLocationApi = '/api/car-center/current/historyLocation';
// 实时位置信息
const getRealLocationApi = '/api/car-center/current/gpsDetail';
/**
 * 获取位置信息
 * @param fnSuccess 成功回掉
 * @param fnFail    失败回掉
 * @return void
 */
export default {
  getHistoryLocation: (opt) => fetch.get(apiFormat2(getHistoryLocationApi, opt)),
  getRealLocation: (payload) => fetch.post(getRealLocationApi, payload)
};
